home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / pp / pp-6.0 / Tools / mpp84 / P2.py < prev    next >
Encoding:
Text File  |  1991-12-18  |  8.3 KB  |  401 lines

  1. -- P2.py - MHS P2 definitions
  2.  
  3. -- @(#) $Header: /xtel/pp/pp-beta/Tools/mpp84/RCS/P2.py,v 6.0 1991/12/18 20:31:34 jpo Rel $
  4. --
  5. -- $Log: P2.py,v $
  6. -- Revision 6.0  1991/12/18  20:31:34  jpo
  7. -- Release 6.0
  8. --
  9. --
  10. --
  11.  
  12.  
  13. P2 DEFINITIONS  ::=
  14.  
  15. %{
  16. #ifndef lint
  17. static char *rcsid = "$Header: /xtel/pp/pp-beta/Tools/mpp84/RCS/P2.py,v 6.0 1991/12/18 20:31:34 jpo Rel $";
  18. #endif  lint
  19. %}
  20.  
  21. BEGIN
  22.  
  23. PRINTER print
  24.  
  25. -- P2 makes use of types defined in the following moduls:
  26. --      P1:  X.411, Section 3.4
  27. --      P3:  X.411, Section 4.3
  28. --      SFD: this Recommendation, Section 5
  29. --      T73: T.73, Section 5
  30.  
  31. UAPDU ::=
  32.         CHOICE {
  33.             im-uapdu [0]
  34.                 IMPLICIT IM-UAPDU,
  35.  
  36.             sr-uapdu [1]
  37.                 IMPLICIT SR-UAPDU
  38.         }
  39.  
  40.  
  41. -- IP-message UAPDU
  42.  
  43. IM-UAPDU ::=
  44.         SEQUENCE {
  45.             heading
  46.                 Heading,
  47.  
  48.             body
  49.                 Body
  50.         }
  51.  
  52.  
  53. -- heading
  54.  
  55. Heading ::=
  56.         SET {
  57.             messageID
  58.                 IPMessageId,
  59.  
  60.             originator [0]
  61.                 IMPLICIT ORDescriptor
  62.                 OPTIONAL,
  63.  
  64.             authorizingUsers[1]
  65.                 IMPLICIT SEQUENCE OF ORDescriptor
  66.                 OPTIONAL,
  67.                 -- only if not the originator
  68.  
  69.             primaryRecipients[2]
  70.                 IMPLICIT SEQUENCE OF Recipient
  71.                 OPTIONAL,
  72.  
  73.             copyRecipients[3]
  74.                 IMPLICIT SEQUENCE OF Recipient
  75.                 OPTIONAL,
  76.  
  77.             blindCopyRecipients[4]
  78.                 IMPLICIT SEQUENCE OF Recipient
  79.                 OPTIONAL,
  80.  
  81.             inReplyTo[5]
  82.                 IMPLICIT IPMessageId
  83.                 OPTIONAL,
  84.                 -- omitted if not in reply to a previous message
  85.  
  86.             obsoletes[6]
  87.                 IMPLICIT SEQUENCE OF IPMessageId
  88.                 OPTIONAL,
  89.  
  90.             crossReferences[7]
  91.                 IMPLICIT SEQUENCE OF IPMessageId
  92.                 OPTIONAL,
  93.  
  94.             subject[8]
  95.                 CHOICE {
  96.                     T61String
  97.                 }
  98.                 OPTIONAL,
  99.  
  100.             expiryDate[9]
  101.                 IMPLICIT P1.Time
  102.                 OPTIONAL,
  103.                 -- if omitted, expiry date is never
  104.  
  105.             replyBy[10]
  106.                 IMPLICIT P1.Time
  107.                 OPTIONAL,
  108.  
  109.             replyToUsers[11]
  110.                 IMPLICIT SEQUENCE OF ORDescriptor
  111.                 OPTIONAL,
  112.                 -- each O/R descriptor must contain an O/R name
  113.  
  114.             importance[12]
  115.                 IMPLICIT INTEGER {
  116.                     low(0),
  117.                     normal(1),
  118.                     high(2)
  119.                 } DEFAULT normal,
  120.  
  121.             sensitivity[13]
  122.                 IMPLICIT INTEGER {
  123.                     personal(1),
  124.                     private(2),
  125.                     companyConfidential(3)
  126.                 } OPTIONAL,
  127.  
  128.             autoforwarded[14]
  129.                 IMPLICIT BOOLEAN
  130.                 DEFAULT FALSE
  131.                 -- indicates that the forwarded message body
  132.                 -- part(s) were autoforwarded
  133.         }
  134.  
  135. IPMessageId ::=
  136.         [APPLICATION 11] IMPLICIT SET {
  137.             orname
  138.                 ORName OPTIONAL,
  139.             PrintableString
  140.         }
  141.  
  142. ORName ::=
  143.         P1.ORName
  144.  
  145. ORDescriptor ::=
  146.         SET {   -- at least one of the first two members must be present
  147.             orname
  148.                 ORName OPTIONAL,
  149.  
  150.             freeformName[0]
  151.                 IMPLICIT T61String
  152.                 OPTIONAL,
  153.  
  154.             telephoneNumber[1]
  155.                 IMPLICIT PrintableString
  156.                 OPTIONAL
  157.         }
  158.  
  159. Recipient ::=
  160.         SET {
  161.             ordesc [0]
  162.                 IMPLICIT ORDescriptor,
  163.  
  164.             reportRequest [1]
  165.                 IMPLICIT BITSTRING {
  166.                     receiptNotification(0),
  167.                     nonreceiptNotification(1),
  168.                     returnIPMessage(2)
  169.                 }
  170.                 DEFAULT {},
  171.                 -- if requested, the O/R descriptor must contain an O/R name
  172.  
  173.             replyRequest[2]
  174.                 IMPLICIT BOOLEAN
  175.                 DEFAULT FALSE
  176.                 -- if true, the O/R descriptor must contain an O/R name
  177.         }
  178.  
  179.  
  180. -- body
  181.  
  182. Body ::=
  183.         SEQUENCE OF BodyPart
  184.  
  185. BodyPart ::=
  186.         CHOICE {
  187.             ia5text [0]
  188.                 IMPLICIT IA5Text,
  189.  
  190.             tlx [1]
  191.                 IMPLICIT TLX,
  192.  
  193.             voice [2]
  194.                 IMPLICIT Voice,
  195.  
  196.             g3fax [3]
  197.                 IMPLICIT G3Fax,
  198.  
  199.             tifo [4]
  200.                 IMPLICIT TIF0,
  201.  
  202.             ttx [5]
  203.                 IMPLICIT TTX,
  204.  
  205.             videotex [6]
  206.                 IMPLICIT Videotex,
  207.  
  208.             nationallydef [7]
  209.                 NationallyDefined,
  210.  
  211.             encrypted [8]
  212.                 IMPLICIT Encrypted,
  213.  
  214.             forwardmsg [9]
  215.                 IMPLICIT ForwardedIPMessage,
  216.  
  217.             sfd [10]
  218.                 IMPLICIT SFD,
  219.  
  220.             tifi [11]
  221.                 IMPLICIT TIF1
  222.         }
  223.  
  224.  
  225. -- body part types
  226.  
  227. IA5Text ::=
  228.         SEQUENCE {
  229.             SET {
  230.                 repertoire[0]
  231.                     IMPLICIT INTEGER {
  232.                         ia5(5),
  233.  
  234.                         ita2(2)
  235.                     } DEFAULT ia5
  236.                     -- additional members of this Set are a
  237.                     -- possible future extension
  238.             },
  239.  
  240.             IA5String
  241.         }
  242.  
  243. TLX ::=
  244.         ANY -- for further study
  245.  
  246. Voice ::=
  247.         SEQUENCE {
  248.             SET, -- members are for further study
  249.             BITSTRING
  250.         }
  251.  
  252. G3Fax ::=
  253.         SEQUENCE {
  254.             SET {
  255.                 numberOfPages[0]
  256.                     IMPLICIT INTEGER OPTIONAL,
  257.  
  258.                 [1]
  259.                     IMPLICIT P1.G3NonBasicParams OPTIONAL
  260.             },
  261.  
  262.             SEQUENCE OF BITSTRING
  263.         }
  264.  
  265. TIF0 ::=
  266.         T73Document
  267.  
  268. T73Document ::=
  269.         SEQUENCE OF T73.ProtocolElement
  270.  
  271. TTX ::=
  272.         SEQUENCE {
  273.             SET {
  274.                 numberOfPages[0]
  275.                     IMPLICIT INTEGER OPTIONAL,
  276.  
  277.                 telexCompatible[1]
  278.                     IMPLICIT BOOLEAN DEFAULT FALSE,
  279.  
  280.                 [2]
  281.                     IMPLICIT P1.TeletexNonBasicParams OPTIONAL
  282.             },
  283.  
  284.             SEQUENCE OF T61String
  285.         }
  286.  
  287. Videotex ::=
  288.         SEQUENCE {
  289.             SET, -- members are for further study
  290.             VideotexString
  291.         }
  292.  
  293. NationallyDefined ::=
  294.         ANY
  295.  
  296. Encrypted ::=
  297.         SEQUENCE {
  298.             SET, -- members are for further study
  299.             BITSTRING
  300.         }
  301.  
  302. ForwardedIPMessage ::=
  303.         SEQUENCE {
  304.             SET {
  305.                 delivery[0]
  306.                     IMPLICIT P1.Time
  307.                     OPTIONAL,
  308.  
  309.                 [1]
  310.                     IMPLICIT DeliveryInformation
  311.                     OPTIONAL
  312.             },
  313.  
  314.             IM-UAPDU
  315.         }
  316.  
  317. DeliveryInformation ::=
  318.         P3.DeliverEnvelope
  319.  
  320. SFD ::=
  321.         SFD.Document
  322.  
  323. TIF1 ::=
  324.         T73Document
  325.  
  326.  
  327. -- IPM-status-report UAPDU
  328.  
  329. SR-UAPDU ::=
  330.         SET {
  331.             choice [0]
  332.                 CHOICE {
  333.                     nonReceipt[0]
  334.                         IMPLICIT NonReceiptInformation,
  335.  
  336.                     receipt[1]
  337.                         IMPLICIT ReceiptInformation
  338.                 },
  339.  
  340.             reported
  341.                 IPMessageId,
  342.  
  343.             actualRecipient[1]
  344.                 IMPLICIT ORDescriptor
  345.                 OPTIONAL,
  346.  
  347.             intendedRecipient[2]
  348.                 IMPLICIT ORDescriptor
  349.                 OPTIONAL,
  350.  
  351.             converted
  352.                 P1.EncodedInformationTypes
  353.                 OPTIONAL
  354.         }
  355.  
  356. NonReceiptInformation ::=
  357.         SET {
  358.             reason[0]
  359.                 IMPLICIT INTEGER {
  360.                     uaeInitiatedDiscard(0),
  361.  
  362.                     autoForwarded(1)
  363.                 },
  364.  
  365.             nonReceiptQualifer[1]
  366.                 IMPLICIT INTEGER {
  367.                     expired(0),
  368.  
  369.                     obsoleted(1),
  370.  
  371.                     subscriptionTerminated(2)
  372.                 } OPTIONAL,
  373.  
  374.             comments[2]
  375.                 IMPLICIT PrintableString
  376.                 OPTIONAL,
  377.                 -- on auto-forward
  378.  
  379.             returned[3]
  380.                 IMPLICIT IM-UAPDU
  381.                 OPTIONAL
  382.         }
  383.  
  384. ReceiptInformation ::=
  385.         SET {
  386.             receipt[0]
  387.                 IMPLICIT P1.Time,
  388.  
  389.             typeOfReceipt[1]
  390.                 IMPLICIT INTEGER {
  391.                     explicit(0),
  392.  
  393.                     automatic(1)
  394.                 } DEFAULT explicit,
  395.  
  396.             supplementary [2]
  397.                 IMPLICIT P1.SupplementaryInformation OPTIONAL
  398.         }
  399.  
  400. END
  401.